/*
 * ENUM Discoverer. ENUM Demonstration software, demonstrating the potential of ENUM.
 * 
 * Copyright (C) 2009 SIDN and ISOC.nl
 * 
 * This file is part of ENUM Discoverer.
 *
 * ENUM Discoverer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ENUM Discoverer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with ENUM Discoverer.  If not, see <http://www.gnu.org/licenses/>.
 */

package nl.sidn.enumdiscoverer.contacts;

import nl.sidn.enumdiscoverer.contacts.adapters.ContactAdapter;

public class MappingResult {

	private ContactAdapter mContactAdapter;
	// substring of the URL matching the first capturing group in the ContactMappingRule's regex.
	// If the pattern contained no matching group, then this field holds the entire URL
	private String mMatch;
	
	public MappingResult(ContactAdapter contactAdapter, String match) {
		mContactAdapter = contactAdapter;
		mMatch = match;
	}
	
	public ContactAdapter getContactAdapter() {
		return mContactAdapter;
	}	
	public void setContactAdapter(ContactAdapter value) {
		mContactAdapter = value;
	}
	
	public String getMatch() {
		return mMatch;
	}
	public void setMatch(String value) {
		mMatch = value;
	}
}
